package com.yan.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface LoginMapper {

    //@Select("select * from admin where adminName=#{adminName} and password=#{password}")
    Integer adminLogin(@Param("adminName") String username,@Param("password") String password);

    //@Select("select * from teacher where username=#{username} and password=#{password}")
    Integer teacherLogin(@Param("username") String name, @Param("password") String password);

    //@Select("select * from student where studentId=#{studentId} and password=#{password}")
    Integer studentLogin(@Param("studentId")int id,@Param("password")String password);
}
